package com.groupbuying.ordosmarathon.connector;

import com.groupbuying.ordosmarathon.util.PageUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Author: WANGNING
 * @Email wyn20140226@aliyun.com
 * @Date: 2019/8/7 9:36
 * @Des 用户中心feign
 */
@Service
@FeignClient(name = "bus-customer")
public interface CustomerFeign {
    /*获取注册用户数量*/
    @RequestMapping(value = "/customerPrize/countCustomerForMls", method = RequestMethod.GET)
    Integer countCustomerForMls();
    /*获奖统计*/
    @RequestMapping(value = "/customerPrize/sumEvenPrize", method = RequestMethod.GET)
    Map<String,Integer> sumEvenPrize();
    //获取大转盘商品中奖数量和各个商品的数量
    @RequestMapping(value = "/customerPrize/sumPrize", method = RequestMethod.POST)
    Map sumPrize(@RequestParam Map<String,Object> condMap);
    /*获取大转盘和投屏抽奖列表*/
    @RequestMapping(value = "/customerPrize/list", method = RequestMethod.POST)
    PageUtils getList(@RequestParam Map<String,Object> params);
}


